$(function(){
	//点击选择学历的显示和隐藏
	$(".ui-select-visible-iearnCalendar").click(function(){
		$(".ui-select-dropdown-graduate").hide();
		$(".ui-select-dropdown-entrance").hide();
		$(".ui-select-dropdown-iearnCalendar").slideToggle();
	});
	$(".sign-wrap-v2 li").click(function(){
		$(this).attr("class","ui-select-item ui-select-item-selected").siblings().attr("class","ui-select-item");
	});
	//选择学历的点击事件
    $(".sign-wrap-v1 li").click(function(){
        var v=$(this).text(); 
        $(".hidden1").attr("value",v)
        $(".ui-select-placeholder-iearnCalendar").hide();
        $(".ui-select-inner-iearnCalendar>span[class='ui-select-selected-value']").remove();
        $(".ui-select-inner-iearnCalendar").append("<span class='ui-select-selected-value'>"+v+"</span>");
    });
	//点击入学年月的显示和隐藏
	$(".ui-select-visible-entrance").click(function(){
		$(".ui-select-dropdown-graduate").hide();
		$(".ui-select-dropdown-iearnCalendar").hide();
		$(".ui-select-dropdown-entrance").slideToggle();
	});
	$(".sign-wrap-v2 li").click(function(){
		$(this).attr("class","ui-select-item ui-select-item-selected").siblings().attr("class","ui-select-item");
	});
	//选择日期的点击事件
    $(".sign-wrap-v2 li").click(function(){
        var v=$(this).text(); 
        $(".hidden2").attr("value",v)
        $(".ui-select-placeholder-entrance").hide();
        $(".ui-select-inner-entrance>span[class='ui-select-selected-value']").remove();
        $(".ui-select-inner-entrance").append("<span class='ui-select-selected-value'>"+v+"</span>");
    });
    //点击毕业年月的显示和隐藏
	$(".ui-select-visible-graduate").click(function(){
		$(".ui-select-dropdown-entrance").hide();
		$(".ui-select-dropdown-iearnCalendar").hide();
		$(".ui-select-dropdown-graduate").slideToggle();
		
	});
	$(".ui-select-selection-graduste").click(function(){
		$(".ui-select-selection-graduste").css({"border-color":"#2cd7c8","box-shadow":" 0 1px 2px #96ebe4"});
	});
    //毕业年月点击事件
    $(".sign-wrap-v3 li").click(function(){
		$(this).attr("class","ui-select-item ui-select-item-selected").siblings().attr("class","ui-select-item");
	});
	 $(".sign-wrap-v3 li").click(function(){
        var v=$(this).text(); 
        $(".hidden3").attr("value",v)
        $(".ui-select-placeholder-graduate").hide();
        $(".ui-select-inner-graduate>span[class='ui-select-selected-value']").remove();
        $(".ui-select-inner-graduate").append("<span class='ui-select-selected-value'>"+v+"</span>");
    });
    //输入学校名称的点击事件
    $(".btn-primary").click(function(){
    	var wrap = $(".university").val();
    	if(wrap == ""){
    		$(".item-content-university").append("<div class='form-error-tip'>请输入学校名称</div>");
    	}else if(wrap != ""){
    		$(".item-content-university>div[class='form-error-tip']").remove();
    	}
    });
    //选择学历的点击事件
    $(".btn-primary").click(function(){
    	var calendar = $(".iearnCalendar").val();
    	if(calendar == ""){
    		$(".item-content-iearnCalendar").append("<div class='form-error-tip'>请选择学历</div>");
    	}else if(calendar != ""){
    		$(".item-content-iearnCalendar>div[class='form-error-tip']").remove();
    	}
    });
    //输入所学专业的点击事件
    $(".btn-primary").click(function(){
    	var major = $(".major").val();
    	if(major == ""){
    		$(".item-content-major").append("<div class='form-error-tip'>请选择学历</div>");
    	}else if(major != ""){
    		$(".item-content-major>div[class='form-error-tip']").remove();
    	}
    });
     //输入时间的点击事件
    $(".btn-primary").click(function(){
    	var time = $(".time").val();
    	var time1 = $(".time1").val();
    	if(time1 == "" && time == ""){
    		$(".item-content-time").append("<div class='form-error-tip'>请选择日期</div>");
    	}else if(time != "" && time1 != ""){
    		$(".item-content-time>div[class='form-error-tip']").remove();
    	}
    });
    //输入在校经历的点击事件
    $(".btn-primary").click(function(){
    	var time = $(".experience").val();
    	if(time == ""){
    		$(".item-content-experience").append("<div class='form-error-tip'>请选择日期</div>");
    	}else if(time != "" ){
    		$(".item-content-time>div[class='form-error-tip']").remove();
    	}
    });
})
